home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr49 / 273_01.zip / SSTRRT.CC < prev    next >
Text File  |  1993-04-04  |  375b  |  15 lines

  1. s_str_rt(int count, char *str)
  2. /* This will shift the characters in the string pointed to by *str right
  3.    count number of characters. Blanks will be added in the positions where
  4.    character are shifted out
  5. */
  6. {
  7.     int x;
  8.     int len = strlen(str);
  9.     if(count >= len) return;
  10.     memmove(str+count,str,len-count);
  11.     for(x=0;x<count;x++)
  12.         *(str + x) = ' ';
  13.  
  14. }
  15.